interface Computable {
	int MAX=46;
	int f(int x);
	}
class China implements Computable {
	int number;
	public int f(int x) {
	int sum=0;
	for(int i=1;i<=x;i++) {
	sum=sum+i;
	}
	return sum;
	}
}
class Japan implements Computable {
	int number;
	public int f(int x) {
	return MAX+x;
	}
}
public class p146 {
public static void main(String args[]) {
	China zhang;
	Japan henlu;
	zhang=new China();
	henlu=new Japan();
	zhang.number=32+Computable.MAX;
	henlu.number=14+Computable.MAX;
	System.out.println("zhang的学号"+zhang.number+",zhang的求和结果"+zhang.f(100));	
	System.out.println("henlu的学号"+henlu.number+",henlu的求和结果"+henlu.f(100));
	}
}	
